#include "fsm_errorstop.h"
#include "axisgroup.h"
#include "axis/axis.h"
#include "errcode.h"
#include "log/zuclog.h"

using axisgroup::AxisGroup;
using axisgroup::FsmErrorStop;

#define AXISGROUP_LOG_INFO(fmt, ...) zuclog_info("AxisGroup %d", fmt, grp_->group_id_, ##__VA_ARGS__)
#define AXISGROUP_LOG_ERR(fmt, ...) zuclog_error("AxisGroup %d", fmt, grp_->group_id_, ##__VA_ARGS__)

FsmErrorStop::FsmErrorStop(AxisGroup* g) : grp_(g) { reset(); }
void FsmErrorStop::reset() {}

void FsmErrorStop::update(bool first)
{
    if (first)
    {
        reset();
    }
}